#ifndef HAVCLIENTUIPROTOCOL_H
#define HAVCLIENTUIPROTOCOL_H
#include <QtWidgets>
enum HEMainType
{
    UIPM_Login = 0,
    UIPM_Setting,
    UIPM_DeviceControl,
    UIPM_DeviceSelect
};

enum HESubType
{
    //UIPS_
	//deviceSelect
	UIPS_OPENVIDEO = 0,
	UIPS_CLOSEVIDEO,
	UIPS_OPENBROADCAST,
	UIPS_CLOSEBROADCAST,
	UIPS_CHECKDEVICEGROUP,
	UIPS_ADDALARMVIDEO,
	UIPS_DELALARMVIDEO,
	UIPS_PAUSSEVIDEO,
	UIPS_CONTINUEVIDEO,
    //deviceControl
	UIPS_DOMEBTNCLICKED,
};

enum HEPropertyName
{
    HEP_USERNAME = 0,
    HEP_PASSWORD,
	HEP_SETTING_SERVERIP,
	HEP_SETTING_SERVERPORT,
	HEP_SETTING_SIPFROM,
	HEP_SETTING_SIPTO,
	HEP_SETTING_SIPAREA,
	HEP_DEVIDEID,
	HEP_TASKID,
	HEP_VEDIOHANDLE,
	HEP_BITSTREAM,
    HEP_DOMEBTNTYPE,
    HEP_DOMEBTNPOSITION,
    HEP_CONTROLSPEED,

};

struct HTUIProtocol
{
    HEMainType                     m_mainType;
    HESubType                      m_subType;
    QHash<HEPropertyName,QVariant> m_hashProperty;
};

struct HTTreeItemInfo{
    QString                 m_strItemText;
    QHash<QString,QVariant> m_hashIDToData;
    bool                    m_bOnline;
	bool                    m_bIsGroup;
    QList<HTTreeItemInfo*>  m_lstChildItems;
};

#endif
